<!DOCTYPE html>
<html>
  <head>
    <title>in-array-unique.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <script type="text/javascript" src="../javascript/lib/jquery-1.9.1/jquery-1.9.1.min.js"></script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript">
		$(function(){
			var p = $("p");
			alert(p.length);
			
			p = $.makeArray(p);
			alert(p.length);
			var np = $.makeArray($(".aa"));
			alert(np.length);
			
			p = p.concat(np);
			alert(p.length);
			p = $.unique(p);
			alert(p.length);
			
			var index = $.inArray("6" , p);
			alert(index);
		});
	</script>
  </head>
  
  <body>
    <p></p>
    <p></p>
    <p></p>
    <p class="aa"></p>
    <p class="aa"></p>
    <p class="aa"></p>
    <p></p>
  </body>
</html>
